package com.zzh.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

/**
 * @author zihong.zheng
 * @version 1.0
 * @date 2019/2/9
 * @time 23:27
 * @description
 */
@SpringBootApplication
@EnableEurekaClient
public class ApplicationConfigClient {

    public static void main(String[] args) {
        SpringApplication.run(ApplicationConfigClient.class, args);
    }


//    @Bean
//    public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
//        PropertySourcesPlaceholderConfigurer c = new PropertySourcesPlaceholderConfigurer();
//        c.setIgnoreUnresolvablePlaceholders(true);
//        return c;
//    }

}
